package org.jeecg.modules.nurse_user_orders.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.nurse_user_orders.entity.NurseUserOrders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.Wrapper;

/**
 * @Description: 用户订单
 * @Author: jeecg-boot
 * @Date: 2024-06-04
 * @Version: V1.0
 */
public interface NurseUserOrdersMapper extends BaseMapper<NurseUserOrders> {
    List<Map<String, Object>> listByWeChat(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("nurseType") String nurseType, @Param("userId") String userId, @Param("status") String status);
    
    /**
     * 自定义分页查询，关联standard_price表
     * @param page 分页参数
     * @param queryWrapper 查询条件
     * @return
     */
    IPage<NurseUserOrders> selectOrdersWithStandard(IPage<NurseUserOrders> page, @Param("ew") Wrapper<NurseUserOrders> queryWrapper);
}